package com.rongzhe.house.house.es_repository;

import org.elasticsearch.action.index.IndexRequest;
import org.elasticsearch.action.update.UpdateRequest;
import org.elasticsearch.client.Client;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.concurrent.ExecutionException;

import static org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder;

/**
 * Created by hggxg on 2018/1/2.
 */
@Service
public class ESHouseServiceImpl implements ESHouseService {


    @Autowired
    private Client client;

    @Override
    public Iterable<ESHouse> save(Iterable<ESHouse> esHouses) throws IOException, ExecutionException, InterruptedException {



        return null;
    }

}
